{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Output/FIGURE 1 & RELATED DESCRIPTIVE STATISTICS.04-19-2021.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}20 Apr 2021, 08:11:29
{txt}
{com}.  
. 
.    
.     **** PROGRAM FILE FOR "CONFIRMATION DYNAMICS" PROJECT: TESTING 'DUE DILIGENCE' THEORY HYPOTHESES [N = 1,013: N = 991: UNCENSORED, N = 22: CENSORED] ****
.    
.    
. 
.    
.    **** QUANTILE SURVIVAL MODELS: ASYMMETRIC LAPLACE MLE CONDITIONAL DENSITY SURVIVAL MODELS OF CONFIRMATION DECAY ****
.  
.  
.  
. 
.  * OPEN UPDATED "CONFIRMATION DYNAMICS" DATABASE [08-13-2020] *
. 
. use "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Data/Confirmation Dynamics.Database.08-13-2020.FINAL.dta", replace
{txt}
{com}. 
. 
. ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
. 
. 
. 
. 
. **** FIGURE 1A: CONFIRMATION DURATION [CONFIRMATION DATE - NOMINATION DATE] FOR TIER 1 PAS BUREAUCRATIC LEADERSHIP NOMINEES [SAME SENATE/CONGRESS BIENNIEL SESSION] ****
. *
. *set scheme sj
. *
. kdensity confdur if toplevel2==1 & confirmobserved==1 & agencyideol!=., lcolor(black) addplot((histogram confdur if toplevel2==1 &confirmobserved==1 & agencyideol!=., fcolor(gs10)), below) legend(off) ylabel(0(0.005)0.025, angle(0) labsize(small)) xlabel(0(100)500, angle(0) labsize(small)) note("") ytitle("Density", size(small) margin(r=2.5)) xtitle("Total Confirmation Duration for Tier 1 Nominees (Days)", size(small) margin(t=2)) title("FIGURE 1A: Tier 1 PAS Bureaucratic Leadership Confirmed Nominees", size(small))
{res}{txt}
{com}. *
. 
. graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Descriptives/Figure1A.gph"
{res}{txt}(file /Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Descriptives/Figure1A.gph saved)

{com}. 
. graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Descriptives/Figure1A.eps"
{txt}(file /Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Descriptives/Figure1A.eps written in EPS format)

{com}. *
. 
. 
. **** FIGURE 1B: CONFIRMATION DURATION [CONFIRMATION DATE - NOMINATION DATE] FOR TIER 2 PAS BUREAUCRATIC LEADERSHIP NOMINEES [SAME SENATE/CONGRESS BIENNIEL SESSION] ****
. *
. *set scheme sj
. *
. kdensity confdur if toplevel2==0  & confirmobserved==1 & agencyideol!=., lcolor(black) addplot((histogram confdur if toplevel2==0 & confirmobserved==1 & agencyideol!=., fcolor(gs10)), below) legend(off) ylabel(0(0.005)0.025, angle(0) labsize(small)) xlabel(0(100)500, angle(0) labsize(small)) note("") ytitle("Density", size(small) margin(r=2.5)) xtitle("Total Confirmation Duration for Tier 2 Nominees (Days)", size(small) margin(t=2)) title("FIGURE 1B: Tier 2 PAS Bureaucratic Leadership Confirmed Nominees", size(small))
{res}{txt}
{com}. *
. graph save "Graph" "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Descriptives/Figure1B.gph"
{res}{txt}(file /Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/Descriptives/Figure1B.gph saved)

{com}. 
. graph export "/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Descriptives/Figure1B.eps"
{txt}(file /Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Graphics/EPS/Descriptives/Figure1B.eps written in EPS format)

{com}. *
. *
. *
. 
. 
. **** DESCRIPTIVE STATISTICS ON SENATE CONFIRMATION DELAY [MENTIONED IN MANUSCRIPT TEXT WHEN DISCUSSING FIGURES 1A & 1B] *****
. 
. 
. **** OVERALL: REPORT ONLY MEDIAN, MEDIAN ABSOLUTE DEVIATION, K-S EQUALITY OF DISTRIBUTIONS TEST STATISTICS ***
. 
. mads confdur if confirmobserved==1 & agencyideol!=.

{txt}{hline 10}{c TT}{hline 47}
  n = 991 {c |}       mean          SD      median         mad
{hline 10}{c +}{hline 47}
  confdur {c |}     {res}60.593      66.930      38.000      35.582
{txt}{hline 10}{c BT}{hline 47}

{com}. sum  confdur if confirmobserved==1 & agencyideol!=., detail

                           {txt}confdur
{hline 61}
      Percentiles      Smallest
 1%    {res}        0              0
{txt} 5%    {res}        3              0
{txt}10%    {res}        9              0       {txt}Obs         {res}        991
{txt}25%    {res}       20              0       {txt}Sum of Wgt. {res}        991

{txt}50%    {res}       38                      {txt}Mean          {res} 60.59334
                        {txt}Largest       Std. Dev.     {res} 66.92985
{txt}75%    {res}       79            447
{txt}90%    {res}      136            474       {txt}Variance      {res} 4479.605
{txt}95%    {res}      190            492       {txt}Skewness      {res} 2.648508
{txt}99%    {res}      331            507       {txt}Kurtosis      {res} 12.87046
{txt}
{com}. *
. mads confdur if confirmobserved==1 & agencyideol!=. & toplevel2==1

{txt}{hline 10}{c TT}{hline 47}
  n = 328 {c |}       mean          SD      median         mad
{hline 10}{c +}{hline 47}
  confdur {c |}     {res}38.729      44.720      23.500      25.946
{txt}{hline 10}{c BT}{hline 47}

{com}. sum  confdur if confirmobserved==1 & agencyideol!=. & toplevel2==1, detail

                           {txt}confdur
{hline 61}
      Percentiles      Smallest
 1%    {res}        0              0
{txt} 5%    {res}        1              0
{txt}10%    {res}        2              0       {txt}Obs         {res}        328
{txt}25%    {res}       11              0       {txt}Sum of Wgt. {res}        328

{txt}50%    {res}     23.5                      {txt}Mean          {res} 38.72866
                        {txt}Largest       Std. Dev.     {res} 44.72029
{txt}75%    {res}       50            219
{txt}90%    {res}       92            267       {txt}Variance      {res} 1999.905
{txt}95%    {res}      128            287       {txt}Skewness      {res} 2.586369
{txt}99%    {res}      219            302       {txt}Kurtosis      {res} 12.05488
{txt}
{com}. *
. mads confdur if confirmobserved==1 & agencyideol!=. & toplevel2==0

{txt}{hline 10}{c TT}{hline 47}
  n = 663 {c |}       mean          SD      median         mad
{hline 10}{c +}{hline 47}
  confdur {c |}     {res}71.410      73.193      49.000      41.513
{txt}{hline 10}{c BT}{hline 47}

{com}. sum confdur if  confirmobserved==1 & agencyideol!=. & toplevel2==0, detail

                           {txt}confdur
{hline 61}
      Percentiles      Smallest
 1%    {res}        4              1
{txt} 5%    {res}        9              1
{txt}10%    {res}       13              1       {txt}Obs         {res}        663
{txt}25%    {res}       23              2       {txt}Sum of Wgt. {res}        663

{txt}50%    {res}       49                      {txt}Mean          {res} 71.41026
                        {txt}Largest       Std. Dev.     {res} 73.19283
{txt}75%    {res}       92            447
{txt}90%    {res}      158            474       {txt}Variance      {res} 5357.191
{txt}95%    {res}      214            492       {txt}Skewness      {res} 2.469786
{txt}99%    {res}      399            507       {txt}Kurtosis      {res} 11.28856
{txt}
{com}. *
. *
. ksmirnov confdur if confirmobserved==1 & agencyideol!=., by(toplevel2)

{txt}Two-sample Kolmogorov-Smirnov test for equality of distribution functions

 Smaller group       D       P-value  
 {hline 35}
 0:                {res}  0.0000    1.000
{txt} 1:                {res} -0.2446    0.000
{txt} Combined K-S:     {res}  0.2446    0.000

{txt}Note: Ties exist in combined dataset;
      there are 198 unique values out of 991 observations.

{com}. *
. *
. *
. *
. *
. *
. 
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/JAYBYERS/Dropbox/Jason Byers/Co-Authored Projects/Projects with Krause/Krause Projects/Confirmation Dynamics Project/Nominee Characteristics Project/JOPDRMJB/Output/FIGURE 1 & RELATED DESCRIPTIVE STATISTICS.04-19-2021.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}20 Apr 2021, 08:11:32
{txt}{.-}
{smcl}
{txt}{sf}{ul off}